package b01static;

import 考试.第一题.输出HelloWorld;

public class Circle {
    private double pai=3.14;
    private double radius;

    public Circle() {

    }

    public Circle(double pai, double radius) {
        this.pai = pai;
        this.radius = radius;
    }

    private double getPai() {
        return pai;
    }

    private void setPai(double pai) {
        this.pai = pai;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
    public double findArea(){
        double area=pai*(radius*radius);
        System.out.println("园的面积是"+area);
        return area;
    }
}
